package com.monster.dict.domain.dto;

import com.monster.dict.domain.common.DictValidGroup;
import com.monster.valid.annotation.ValidEnum;
import com.monster.valid.annotation.ValidMonster;
import com.monster.valid.regex.RegexEnum;
import lombok.Data;

/**
 * 查询数据的实体
 * @author kuang
 */
@Data
public class QueryDictListDto {
    /**
     * 枚举编码
     */
    @ValidMonster(name = "字典编码", value = RegexEnum.ENGLISH_SMALL, specials = "_", max = 32, groups = DictValidGroup.Group.Code.class)
    private String code;
    /**
     * 枚举名称
     */
    @ValidMonster(name = "字典名称", value = RegexEnum.CHINESE_ENGLISH_NUMBER, specials = {"_", ","}, max = 15, groups = DictValidGroup.Group.Name.class)
    private String name;
    /**
     * 字典类型
     */
    @ValidEnum(name = "字典类型", valueEnum = {"0", "1"}, groups = DictValidGroup.Group.Type.class)
    private Integer type;
    /**
     * 锁定状态
     */
    @ValidEnum(name = "锁定状态", valueEnum = {"0", "1"}, groups = DictValidGroup.Group.LockState.class)
    private Integer LockState;
    /**
     * 字典状态
     */
    @ValidEnum(name = "字典状态", valueEnum = {"0", "1"}, groups = DictValidGroup.Group.State.class)
    private Integer state;
}
